home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mikecom
/
strip.asm
< prev
next >
Wrap
Assembly Source File
|
1987-05-17
|
1KB
|
29 lines
title SET BIT STRIPPING MASK
include subfx.h
; Mike Dumdei, 6 Holly Lane, Texarakana TX 75503
;**************************************************************************
; ASYNC_STRIP -- Sets the bit stripping mask that is ANDed with incoming
; characeters. Returns R_OK if successful else R_NOPORT.
;**************************************************************************
begseg COMM_TEXT
publicproc _async_strip
push bp
mov bp,sp
push si ;stack frame setup
call __ck_port_arg ;ck if valid, load pointers
jz strip_exit ;bad arg if ZR flag set
mov al,StripMask
mov STRIP_MASK,al ;set the new bit stripping mask
xor ax,ax ;AH=0, AL=MSR value
strip_exit:
pop si
pop bp
ret ;restore regs and exit
_async_strip endp
endseg COMM_TEXT
end